package com.yc.rh.entities;

	
public class ReserveInfo{
		private int reid;
		private int usid;
		private int aiid;
		private String uname;
		private String tel;
		private String redate;
		private String ainame;
		private String aicontent;
		private String aisdate;
		private String text1;
		private String text2;
		private String text3;
		public int getReid() {
			return reid;
		}
		public void setReid(int reid) {
			this.reid = reid;
		}
		public int getUsid() {
			return usid;
		}
		public void setUsid(int usid) {
			this.usid = usid;
		}
		public int getAiid() {
			return aiid;
		}
		public void setAiid(int aiid) {
			this.aiid = aiid;
		}
		public String getUname() {
			return uname;
		}
		public void setUname(String uname) {
			this.uname = uname;
		}
		public String getTel() {
			return tel;
		}
		public void setTel(String tel) {
			this.tel = tel;
		}
		public String getRedate() {
			if(redate!=null){
				redate=redate.substring(0, redate.indexOf("."));
			}
			return redate;
		}
		public void setRedate(String redate) {
			this.redate = redate;
		}
		public String getAiname() {
			return ainame;
		}
		public void setAiname(String ainame) {
			this.ainame = ainame;
		}
		public String getAicontent() {
			return aicontent;
		}
		public void setAicontent(String aicontent) {
			this.aicontent = aicontent;
		}
		public String getAisdate() {
			if(aisdate!=null){
				aisdate=aisdate.substring(0, aisdate.indexOf("."));
			}
			return aisdate;
		}
		public void setAisdate(String aisdate) {
			this.aisdate = aisdate;
		}
		public String getText1() {
			return text1;
		}
		public void setText1(String text1) {
			this.text1 = text1;
		}
		public String getText2() {
			return text2;
		}
		public void setText2(String text2) {
			this.text2 = text2;
		}
		public String getText3() {
			return text3;
		}
		public void setText3(String text3) {
			this.text3 = text3;
		}
		@Override
		public int hashCode() {
			final int prime = 31;
			int result = 1;
			result = prime * result
					+ ((aicontent == null) ? 0 : aicontent.hashCode());
			result = prime * result + aiid;
			result = prime * result
					+ ((ainame == null) ? 0 : ainame.hashCode());
			result = prime * result
					+ ((aisdate == null) ? 0 : aisdate.hashCode());
			result = prime * result
					+ ((redate == null) ? 0 : redate.hashCode());
			result = prime * result + reid;
			result = prime * result + ((tel == null) ? 0 : tel.hashCode());
			result = prime * result + ((text1 == null) ? 0 : text1.hashCode());
			result = prime * result + ((text2 == null) ? 0 : text2.hashCode());
			result = prime * result + ((text3 == null) ? 0 : text3.hashCode());
			result = prime * result + ((uname == null) ? 0 : uname.hashCode());
			result = prime * result + usid;
			return result;
		}
		@Override
		public boolean equals(Object obj) {
			if (this == obj)
				return true;
			if (obj == null)
				return false;
			if (getClass() != obj.getClass())
				return false;
			ReserveInfo other = (ReserveInfo) obj;
			if (aicontent == null) {
				if (other.aicontent != null)
					return false;
			} else if (!aicontent.equals(other.aicontent))
				return false;
			if (aiid != other.aiid)
				return false;
			if (ainame == null) {
				if (other.ainame != null)
					return false;
			} else if (!ainame.equals(other.ainame))
				return false;
			if (aisdate == null) {
				if (other.aisdate != null)
					return false;
			} else if (!aisdate.equals(other.aisdate))
				return false;
			if (redate == null) {
				if (other.redate != null)
					return false;
			} else if (!redate.equals(other.redate))
				return false;
			if (reid != other.reid)
				return false;
			if (tel == null) {
				if (other.tel != null)
					return false;
			} else if (!tel.equals(other.tel))
				return false;
			if (text1 == null) {
				if (other.text1 != null)
					return false;
			} else if (!text1.equals(other.text1))
				return false;
			if (text2 == null) {
				if (other.text2 != null)
					return false;
			} else if (!text2.equals(other.text2))
				return false;
			if (text3 == null) {
				if (other.text3 != null)
					return false;
			} else if (!text3.equals(other.text3))
				return false;
			if (uname == null) {
				if (other.uname != null)
					return false;
			} else if (!uname.equals(other.uname))
				return false;
			if (usid != other.usid)
				return false;
			return true;
		}
		@Override
		public String toString() {
			return "ReserveInfo [reid=" + reid + ", usid=" + usid + ", aiid="
					+ aiid + ", uname=" + uname + ", tel=" + tel + ", redate="
					+ redate + ", ainame=" + ainame + ", aicontent="
					+ aicontent + ", aisdate=" + aisdate + ", text1=" + text1
					+ ", text2=" + text2 + ", text3=" + text3 + "]";
		}
		public ReserveInfo(int reid, int usid, int aiid, String uname,
				String tel, String redate, String ainame, String aicontent,
				String aisdate, String text1, String text2, String text3) {
			super();
			this.reid = reid;
			this.usid = usid;
			this.aiid = aiid;
			this.uname = uname;
			this.tel = tel;
			this.redate = redate;
			this.ainame = ainame;
			this.aicontent = aicontent;
			this.aisdate = aisdate;
			this.text1 = text1;
			this.text2 = text2;
			this.text3 = text3;
		}
		public ReserveInfo() {
			super();
		}
		
		
		
}	
